package com.shensi.adminCollect.controller.market;

import com.shensi.common.core.domain.AjaxResult;
import com.shensi.adminCollect.service.coupon.ICouponUserService;
import com.shensi.adminCollect.domain.markert.dto.CouponReductionDto;
import com.shensi.adminCollect.service.markert.ActivitySyncService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import javax.validation.Valid;

@RestController
@RequestMapping("/syncActivity")
public class ActivitySyncController {

    @Resource
    private ICouponUserService couponUserService;





    @Resource
    private ActivitySyncService activitySyncService;


    @PostMapping("/getReduction/{timestamp}/{sign}")
    public AjaxResult selectReduction(@RequestBody @Valid CouponReductionDto couponReductionDto){

        return activitySyncService.selectDiscount(couponReductionDto);








    }

}
